Skip to content

Keep a stale country rollup's 30-day total and a refusal's status, read NPM_CONFIG_DRY_RUN in any case, and fail the cron route closed without CRON_SECRET (#65) - #66

Merged
thebenignhacker merged 1 commit into
mainfrom
integrate/2026-10-08-r1
Oct 8, 2026
Merged

thebenignhacker merged 1 commit into
mainfrom
integrate/2026-10-08-r1

Conversation

@thebenignhacker

Copy link
Copy Markdown
Contributor

This pull request carries one commit, which addresses the seven items of issue #65 in the PyPI country collector and the cron route. The country rollup's 30-day window is now anchored on the as-of day (the newest stored day) rather than on the run date; a rollup rewrite that fails during an early stop is logged and the run keeps the status it stopped with (for example refused_cap) instead of ending error; npm_config_dry_run=true selects the dry run in any letter case; -h or --help prints the usage and exits 0 whatever else is given; the cron route answers 401 when CRON_SECRET is unset or empty; and the summary step receives an allowlisted environment (the collector set plus SUMMARY_DB, SUMMARY_OUT and COLLECTOR_OUTCOMES) instead of the whole process environment. The README and usage text describe -h, help precedence and how npm 8 through 11 and npm 12 treat an unknown flag given without --.

Included

Verified on this exact tree

Run on commit 6c540ac with Node 24.21.0 after npm ci.

  • Build: npm run build (Next.js) exit 0. Output: "Finished TypeScript", "Compiled successfully", static pages 3/3 generated.
  • Typecheck: no separate script; the repository has no tsconfig.json. The TypeScript step inside the Next.js build finished without error.
  • Lint: no lint script in package.json.
  • Changelog check: the repository has no changelog file or check.
  • Tests: node --test --test-concurrency=4 test/*.test.js over 18 test files. Output: tests 253, pass 253, fail 0, cancelled 0, skipped 0, todo 0.
  • Failures classified as pre-existing or load related: none.

Not included

None.

How to merge

Rebase and merge, so that each change stays its own commit on main.

…ad NPM_CONFIG_DRY_RUN in any case, and fail the cron route closed without CRON_SECRET (#65)

Fixes #65
@vercel

vercel Bot commented Oct 8, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
github-analytics-tracker Ready Ready Preview Oct 8, 2026 1:19am UTC

Request Review

@thebenignhacker
thebenignhacker merged commit f02a97c into main Oct 8, 2026
3 checks passed
@thebenignhacker
thebenignhacker deleted the integrate/2026-10-08-r1 branch October 8, 2026 01:20

This branch was successfully deployed

1 active deployment
Preview — 6c540ac1 Deployed Oct 8, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant